package com.codefox.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.codefox.service.TbDruggistService;

/**
 * 药商请求处理层
 * 
 * @author puma
 * @date 2018年10月11日 上午9:58:24
 */
@Controller
@RequestMapping(value= {"back","front"})
public class TbDruggistController {
	
	@Autowired
	TbDruggistService service;
	
	@ResponseBody
	@RequestMapping(value= {"listDruggist"},produces="application/json;charset=UTF-8")
	public String listDruggist() {
		return JSON.toJSONString(service.listDruggist());
	}
	
}
